(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/home/components/mode-switch-popup/mode-switch-popup" ], {
    1951: function(e, o, t) {
        t.d(o, "b", function() {
            return n;
        }), t.d(o, "c", function() {
            return u;
        }), t.d(o, "a", function() {});
        var n = function() {
            var e = this;
            e.$createElement;
            e._self._c, e._isMounted || (e.e0 = function(o) {
                e.showModeSwitchPopup = !1;
            });
        }, u = [];
    },
    3260: function(e, o, t) {
        t.r(o);
        var n = t("a09c"), u = t.n(n);
        for (var a in n) [ "default" ].indexOf(a) < 0 && function(e) {
            t.d(o, e, function() {
                return n[e];
            });
        }(a);
        o.default = u.a;
    },
    "7ecf": function(e, o, t) {},
    "8c59": function(e, o, t) {
        var n = t("7ecf");
        t.n(n).a;
    },
    "92a76": function(e, o, t) {
        t.r(o);
        var n = t("1951"), u = t("3260");
        for (var a in u) [ "default" ].indexOf(a) < 0 && function(e) {
            t.d(o, e, function() {
                return u[e];
            });
        }(a);
        t("8c59");
        var c = t("f0c5"), r = Object(c.a)(u.default, n.b, n.c, !1, null, "62641746", null, !1, n.a, void 0);
        o.default = r.exports;
    },
    a09c: function(e, o, t) {
        var n = t("4ea4").default;
        Object.defineProperty(o, "__esModule", {
            value: !0
        }), o.default = void 0;
        var u = n(t("a34a")), a = n(t("c973")), c = n(t("9523")), r = t("aa79"), i = t("fd0e"), d = t("665c"), p = t("83f5"), l = t("cee8"), s = t("68d3"), f = t("4ef0"), m = n(t("2de2")), v = t("05dc"), h = {
            setup: function(e, o) {
                var t = (0, d.useState)().userVariables, n = (0, d.useGetters)().frameCity, h = (0, 
                i.computed)(function() {
                    var e;
                    return ((null === (e = t.value) || void 0 === e ? void 0 : e.change_mode) || r.ModeList).map(function(e) {
                        return r.Number2Mode[e];
                    });
                }), w = (0, i.computed)(function() {
                    var e, o, n, u, a;
                    return a = {}, (0, c.default)(a, r.Mode.Normal, null === (e = t.value) || void 0 === e || null === (o = e.mode_url) || void 0 === o ? void 0 : o.standard_mode_url), 
                    (0, c.default)(a, r.Mode.Simple, null === (n = t.value) || void 0 === n || null === (u = n.mode_url) || void 0 === u ? void 0 : u.mini_mode_url), 
                    a;
                }), b = (0, i.computed)(function() {
                    return h.value.map(function(e) {
                        return {
                            mode: e,
                            url: w.value[e]
                        };
                    });
                });
                function g() {
                    return (g = (0, a.default)(u.default.mark(function e(o) {
                        var t, a, c;
                        return u.default.wrap(function(e) {
                            for (;;) switch (e.prev = e.next) {
                              case 0:
                                if (t = r.mode.value, (0, v.statistics)("operation_mode_switch", {
                                    mode_before: (0, r.getModeIndex)(t) + 1,
                                    mode_after: (0, r.getModeIndex)(o) + 1,
                                    frame_city: n.value.city_name,
                                    switch_way: (0, f.getCurrentRoute)() === m.default.homeUrl ? "列表" : "设置"
                                }), o === r.mode.value) {
                                    e.next = 18;
                                    break;
                                }
                                if ((0, p.saveModeApi)({
                                    mode: (0, r.getModeIndex)(o)
                                }), a = (0, f.getCurrentRoute)(), (c = a === m.default.homeUrl) && r.pageRotateDuration, 
                                r.mode.value = o, (0, r.saveMode)(), (0, s.clearOrderInfo)(), o === r.Mode.Simple && (0, 
                                r.getSimpleModeConfig)(o), (0, r.startModeRotateAnimation)(), setTimeout(function() {
                                    r.showModeSwitchPopup.value = !1;
                                }, 300), !c || !r.usePageRotate.value) {
                                    e.next = 15;
                                    break;
                                }
                                return e.abrupt("return");

                              case 15:
                                setTimeout(function() {
                                    (0, l.$success)({
                                        title: "切换成功",
                                        duration: 1500
                                    });
                                }, 300), e.next = 19;
                                break;

                              case 18:
                                r.showModeSwitchPopup.value = !1;

                              case 19:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }))).apply(this, arguments);
                }
                return {
                    mode: r.mode,
                    showModeSwitchPopup: r.showModeSwitchPopup,
                    list: b,
                    handleSelect: function(e) {
                        return g.apply(this, arguments);
                    }
                };
            }
        };
        h.components = Object.assign({
            BottomPopup: function() {
                Promise.all([ t.e("common/vendor"), t.e("components/bottom-popup/index") ]).then(function() {
                    return resolve(t("54a1"));
                }.bind(null, t)).catch(t.oe);
            },
            HCheckbox: function() {
                t.e("components/h-checkbox/index").then(function() {
                    return resolve(t("45cc"));
                }.bind(null, t)).catch(t.oe);
            }
        }, h.components);
        var w = h;
        o.default = w;
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "pages/home/components/mode-switch-popup/mode-switch-popup-create-component", {
    "pages/home/components/mode-switch-popup/mode-switch-popup-create-component": function(e, o, t) {
        t("543d").createComponent(t("92a76"));
    }
}, [ [ "pages/home/components/mode-switch-popup/mode-switch-popup-create-component" ] ] ]);